#ifndef SKELETONANIMATIONREADER_H_
#define SKELETONANIMATIONREADER_H_
#include "SkeletonAnimation.h"
#include "BoneOrientationNode.h"
#include "BoneOrientation.h"

#define UNKNOWN_TYPE -1
#define ANIMATION_NAME_TYPE 0
#define POSE_TYPE 1

class SkeletonAnimationReader
{
	public:
	static SkeletonAnimation * LoadFromFile(char * fileName, char ** name);
	static int GetElementType(char * element);
	static char * HandleNameTag(char * tag, int pos);
	static BoneOrientationNode * HandlePoseTag(char * tag, int pos);
	static BoneOrientation * ReadBoneOrientation(char * element);
	static BoneOrientation * ReadNextBoneOrientation(char * tag, int * pos);
	static BoneOrientationNode * ReadNextPose(char * tag, int * pos);
};
#endif /*SKELETONANIMATIONREADER_H_*/
